home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIFE6__ / PROTO / P / PCOMMONL.C < prev    next >
Text File  |  1991-08-16  |  6KB  |  140 lines

  1. /*   PCommonLife6                                                         Common
  2.  
  3. Name:  PCommonLife6.c  
  4. Function:  Common for the Prototyper specific code.
  5. History: 8/16/91 Original by Prototyper 3.0
  6. */
  7.  
  8.  
  9. #include "PCommonLife6.h"    /* Common */
  10.  
  11. /* ======================================================= */
  12.  
  13.  
  14.  
  15. UserEventHRec UserEventList;                                            /* User Event record list start */
  16. EventRecord myEvent;                                                     /* Event record for all events */
  17. Boolean WNE;                                                                 /* WaitNextEvent trap is available */
  18. short SleepValue;                                                            /* Sleep value for Wait on events */
  19. Boolean doneFlag;                                                            /* Exit program flag */
  20. TEHandle theInput;                                                           /* Used in text edit selections */
  21. Rect tempRect;                                                              /* Temporary rect, not for long term use */
  22. Str255 sTemp;                                                              /* Temporary string, not for long term use */
  23. Boolean  HasColorQD;                                                       /* Flag for Color QuickDraw being available */
  24. Boolean  HasFPU;                                                             /* Flag for Floating Point Math Chip being available */
  25. Boolean  InTheForeground;                                                 /* Flag for running in MultiFinder foreground */
  26. short  tempChar;                                                             /*Temporary use character*/
  27.  
  28. MenuHandle    Menu_Apple;                                                 /* Menu handle */
  29. MenuHandle    Menu_File;                                                   /* Menu handle */
  30. MenuHandle    Menu_Edit;                                                  /* Menu handle */
  31. MenuHandle    Menu_Life_Stuff;                                           /* Menu handle */
  32.  
  33. /* Variables for the modal dialog titled  "About Life" */
  34.  
  35. /* Window variables for the window titled  "Life 4a" */
  36. WindowPtr    WPtr_Life_4a;                                               /* Window pointer */
  37. ControlHandle    Ctrl_GO;                                                  /* ...Button */
  38. ControlHandle    Ctrl_Rect_hotspot1_1;                                 /* ...HotSpot */
  39. Rect    HotRect_Rect_hotspot1_1;
  40. ControlHandle    Ctrl_Rect_hotspot1_2;                                 /* ...HotSpot */
  41. Rect    HotRect_Rect_hotspot1_2;
  42. ControlHandle    Ctrl_Rect_hotspot1_3;                                 /* ...HotSpot */
  43. Rect    HotRect_Rect_hotspot1_3;
  44. ControlHandle    Ctrl_Rect_hotspot1_4;                                 /* ...HotSpot */
  45. Rect    HotRect_Rect_hotspot1_4;
  46. ControlHandle    Ctrl_Rect_hotspot1_5;                                 /* ...HotSpot */
  47. Rect    HotRect_Rect_hotspot1_5;
  48. ControlHandle    Ctrl_Rect_hotspot1_6;                                 /* ...HotSpot */
  49. Rect    HotRect_Rect_hotspot1_6;
  50. ControlHandle    Ctrl_Rect_hotspot1_7;                                 /* ...HotSpot */
  51. Rect    HotRect_Rect_hotspot1_7;
  52. ControlHandle    Ctrl_Rect_hotspot1_8;                                 /* ...HotSpot */
  53. Rect    HotRect_Rect_hotspot1_8;
  54. ControlHandle    Ctrl_Rect_hotspot2_1;                                 /* ...HotSpot */
  55. Rect    HotRect_Rect_hotspot2_1;
  56. ControlHandle    Ctrl_Rect_hotspot2_2;                                 /* ...HotSpot */
  57. Rect    HotRect_Rect_hotspot2_2;
  58. ControlHandle    Ctrl_Rect_hotspot2_3;                                 /* ...HotSpot */
  59. Rect    HotRect_Rect_hotspot2_3;
  60. ControlHandle    Ctrl_Rect_hotspot2_4;                                 /* ...HotSpot */
  61. Rect    HotRect_Rect_hotspot2_4;
  62. ControlHandle    Ctrl_Rect_hotspot2_5;                                 /* ...HotSpot */
  63. Rect    HotRect_Rect_hotspot2_5;
  64. ControlHandle    Ctrl_Rect_hotspot2_6;                                 /* ...HotSpot */
  65. Rect    HotRect_Rect_hotspot2_6;
  66. ControlHandle    Ctrl_Rect_hotspot2_7;                                 /* ...HotSpot */
  67. Rect    HotRect_Rect_hotspot2_7;
  68. ControlHandle    Ctrl_Rect_hotspot2_8;                                 /* ...HotSpot */
  69. Rect    HotRect_Rect_hotspot2_8;
  70. ControlHandle    Ctrl_Rect_hotspot3_1;                                 /* ...HotSpot */
  71. Rect    HotRect_Rect_hotspot3_1;
  72. ControlHandle    Ctrl_Rect_hotspot3_2;                                 /* ...HotSpot */
  73. Rect    HotRect_Rect_hotspot3_2;
  74. ControlHandle    Ctrl_Rect_hotspot3_3;                                 /* ...HotSpot */
  75. Rect    HotRect_Rect_hotspot3_3;
  76. ControlHandle    Ctrl_Rect_hotspot3_4;                                 /* ...HotSpot */
  77. Rect    HotRect_Rect_hotspot3_4;
  78. ControlHandle    Ctrl_Rect_hotspot3_5;                                 /* ...HotSpot */
  79. Rect    HotRect_Rect_hotspot3_5;
  80. ControlHandle    Ctrl_Rect_hotspot3_6;                                 /* ...HotSpot */
  81. Rect    HotRect_Rect_hotspot3_6;
  82. ControlHandle    Ctrl_Rect_hotspot3_7;                                 /* ...HotSpot */
  83. Rect    HotRect_Rect_hotspot3_7;
  84. ControlHandle    Ctrl_Rect_hotspot3_8;                                 /* ...HotSpot */
  85. Rect    HotRect_Rect_hotspot3_8;
  86. ControlHandle    Ctrl_Rect_hotspot4_1;                                 /* ...HotSpot */
  87. Rect    HotRect_Rect_hotspot4_1;
  88. ControlHandle    Ctrl_Rect_hotspot4_2;                                 /* ...HotSpot */
  89. Rect    HotRect_Rect_hotspot4_2;
  90. ControlHandle    Ctrl_Rect_hotspot4_3;                                 /* ...HotSpot */
  91. Rect    HotRect_Rect_hotspot4_3;
  92. ControlHandle    Ctrl_Rect_hotspot4_4;                                 /* ...HotSpot */
  93. Rect    HotRect_Rect_hotspot4_4;
  94. ControlHandle    Ctrl_Rect_hotspot4_52;                                /* ...HotSpot */
  95. Rect    HotRect_Rect_hotspot4_52;
  96. ControlHandle    Ctrl_Rect_hotspot4_6;                                 /* ...HotSpot */
  97. Rect    HotRect_Rect_hotspot4_6;
  98. ControlHandle    Ctrl_Rect_hotspot4_7;                                 /* ...HotSpot */
  99. Rect    HotRect_Rect_hotspot4_7;
  100. ControlHandle    Ctrl_Rect_hotspot4_8;                                 /* ...HotSpot */
  101. Rect    HotRect_Rect_hotspot4_8;
  102. ControlHandle    Ctrl_Rect_hotspot5_1;                                 /* ...HotSpot */
  103. Rect    HotRect_Rect_hotspot5_1;
  104. ControlHandle    Ctrl_Rect_hotspot5_2;                                 /* ...HotSpot */
  105. Rect    HotRect_Rect_hotspot5_2;
  106. ControlHandle    Ctrl_Rect_hotspot5_3;                                 /* ...HotSpot */
  107. Rect    HotRect_Rect_hotspot5_3;
  108. ControlHandle    Ctrl_Rect_hotspot5_4;                                 /* ...HotSpot */
  109. Rect    HotRect_Rect_hotspot5_4;
  110. ControlHandle    Ctrl_Rect_hotspot5_5;                                 /* ...HotSpot */
  111. Rect    HotRect_Rect_hotspot5_5;
  112. ControlHandle    Ctrl_Rect_hotspot5_6;                                 /* ...HotSpot */
  113. Rect    HotRect_Rect_hotspot5_6;
  114. ControlHandle    Ctrl_Rect_hotspot5_7;                                 /* ...HotSpot */
  115. Rect    HotRect_Rect_hotspot5_7;
  116. ControlHandle    Ctrl_Rect_hotspot5_8;                                 /* ...HotSpot */
  117. Rect    HotRect_Rect_hotspot5_8;
  118. ControlHandle    Ctrl_Rect_hotspot6_1;                                 /* ...HotSpot */
  119. Rect    HotRect_Rect_hotspot6_1;
  120. ControlHandle    Ctrl_Rect_hotspot6_2;                                 /* ...HotSpot */
  121. Rect    HotRect_Rect_hotspot6_2;
  122. ControlHandle    Ctrl_Rect_hotspot6_3;                                 /* ...HotSpot */
  123. Rect    HotRect_Rect_hotspot6_3;
  124. ControlHandle    Ctrl_Rect_hotspot6_4;                                 /* ...HotSpot */
  125. Rect    HotRect_Rect_hotspot6_4;
  126. ControlHandle    Ctrl_Rect_hotspot6_5;                                 /* ...HotSpot */
  127. Rect    HotRect_Rect_hotspot6_5;
  128. ControlHandle    Ctrl_Rect_hotspot6_6;                                 /* ...HotSpot */
  129. Rect    HotRect_Rect_hotspot6_6;
  130. ControlHandle    Ctrl_Rect_hotspot6_7;                                 /* ...HotSpot */
  131. Rect    HotRect_Rect_hotspot6_7;
  132. ControlHandle    Ctrl_Rect_hotspot6_8;                                 /* ...HotSpot */
  133. Rect    HotRect_Rect_hotspot6_8;
  134.  
  135.  
  136.  
  137. /* ======================================================= */
  138.  
  139.  
  140.